#include <stdio.h>  
int a[105];  
  
int main() {  
    int n;  
    if (scanf("%d", &n));  
    for (int i = 0; i < n; i++)  
        if (scanf("%d", &a[i]));  
    for (int i = 0; i < n / 2; i++)   
        printf("%d ", a[i] * a[n - i - 1]);  
    if (n % 2 == 1)  
        printf("%d ", a[n / 2]);  
    printf("\n");  
    return 0;  
}  